package sicnu.cs.ich.api.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.LinkedList;

/**
 * 用于给前端生成js文件用
 *
 * @author CaiKe
 * @date 2021/11/26 11:46
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegionDTO {

    private String regionCode;

    private String regionName;

    private String parentCode;

    @TableField(exist = false)
    private LinkedList<RegionDTO> children = new LinkedList<>();

}